/*
 * @Author: your name
 * @Date: 2021-07-24 19:56:58
 * @LastEditTime: 2021-07-24 20:15:10
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \hm-news\src\utils\storage.js
 */
// 封装本地存储得操作
const TOKEN_NAME = 'hm-news-token'
export function setStorageToken(payload) {
  localStorage.setItem(TOKEN_NAME, JSON.stringify(payload))
}
export function getStorageToken() {
  return JSON.parse(localStorage.getItem(TOKEN_NAME)) || {}
}
export function removeStorageToken() {
  localStorage.removeItem(TOKEN_NAME)
}
